package cn.itcast.mapper;

import cn.itcast.pojo.OperateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LogMapper {
    @Select("select ol.* ,e.name operateEmpName from operate_log ol left join emp e on ol.operate_emp_id = e.id " +
            " order by operate_time desc ")
    List<OperateLog> page(Integer page, Integer pageSize);
}
